package meterMonitor.biz;

import meterMonitor.mapper.MonitorMonthMapper;
import meterMonitor.mapper.MonitorYearMapper;
import meterMonitor.model.MonitorMonth;
import meterMonitor.model.MonitorYear;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MonitorYearBiz {
    public static final Logger logger = LoggerFactory.getLogger(MonitorYearBiz.class);
    @Autowired
    private MonitorYearMapper monitorYearMapper;

    public List<MonitorYear> queryData(String fromTime, String toTime, String codes) {
        return monitorYearMapper.queryData(fromTime,toTime,codes);
    }

    public List<MonitorYear> queryDataByType(String fromTime,String toTime,String codes,int type){
        return monitorYearMapper.queryDataByType(fromTime, toTime, codes, type);
    }

}

